﻿using System;
using System.Runtime.Serialization;

namespace System
{
 
    /// <summary>
    /// 对象关联信息
    /// </summary>
    [Serializable]  
    public class RelationInfo
    {
        /// <summary>
        /// 关联方式
        /// </summary>        
        public RelationType? RelationType { get; set; }

        /// <summary>
        /// 关联表名
        /// </summary>        
        public string TableName { get; set; }

        /// <summary>
        /// 关联字段
        /// </summary>        
        public string KeyName { get; set; }

        /// <summary>
        /// 关联表的关联字段
        /// </summary>        
        public string FieldName { get; set; }

        /// <summary>
        /// 必备条件
        /// </summary>        
        public string Condition { get; set; }
    }
}
